package com.wyl.circularDependency;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author 吴宇亮 on 2022/3/17 9:32
 */
@Component
public class BeanA {

    private BeanB beanB;

    public void invokeBeanB(){
        beanB.hello();
    }

    public void hello(){
        System.out.println("hello, I am BeanA");
    }
}
